package jm.nj.demo18main.demo04;

import java.io.Serializable;

public class Student implements Serializable {
    private static final long serialVersionUID = -6845450099347686216L;
    /**
     * 自定义序列号 根据类的定义计算出来的序列号
     */

    private String name;
    private int age;

    public Student() {
        super();
    }

    @Override
    public String toString() {
        return "Student [name=" + name + ", age=" + age + "]";
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }
}
